package com.scy.sqlSession;

import com.scy.entity.Configuration;
import com.scy.entity.MappedStatement;

import java.util.List;

/**
 * @author 司晨雨
 * @date 2020/4/28 15:21
 * @description
 */
public interface Executor {

     <E> List<E> query(Configuration configuration, MappedStatement mappedStatement, Object... params) throws Exception;

     int update(Configuration configuration, MappedStatement mappedStatement, Object... params) throws Exception;

     int delete(Configuration configuration, MappedStatement mappedStatement, Object... params) throws Exception;

     int add(Configuration configuration, MappedStatement mappedStatement, Object... params) throws Exception;

}
